﻿#region Includes
using System;
using System.Runtime.InteropServices;
#endregion

namespace GingerGL.Graphics.Models.BSP
{
    //------------------------------------------------------------//
    /// <summary>
    /// lightmap as found in file
    /// </summary>
    [StructLayout(LayoutKind.Sequential, Pack = 1, CharSet = CharSet.Ansi)]
    public struct BSPLightmap
    {
        //--------------------------------------------------------//
        #region Variable
        [MarshalAs(UnmanagedType.ByValArray, SizeConst = 128 * 128 * 3)]
        public byte[] LightmapData;

        static public readonly int SizeInBytes = sizeof(byte) * 128 * 128 * 3;
        #endregion
        //--------------------------------------------------------//
    }
    //------------------------------------------------------------//
}
